/*
 * @Author: hanqifeitb 8592865+hanqifeitb@user.noreply.gitee.com
 * @Date: 2025-03-05 13:21:53
 * @LastEditors: hanqifeitb 8592865+hanqifeitb@user.noreply.gitee.com
 * @LastEditTime: 2025-03-08 23:39:02
 * @FilePath: /tianmu/nuxt-font/nuxt.config.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  ssr: true, // 默认打开SSR 服务端渲染
  compatibilityDate: '2024-11-01',
  devtools: { enabled: false },
  css: ['~/assets/common.css', '@wangeditor/editor/dist/css/style.css'],
  plugins: [
    '~/plugins/element-plus.js',
    '~/plugins/CalcSS3.js',
    // '~/plugins/wang-editor.client.js',
    // {
    //   src: "~/plugins/wang-editor",
    //   mode: "client",
    // },
  ],
  modules: ['@pinia/nuxt', 'nuxt-echarts', 'pinia-plugin-persistedstate/nuxt'],
  // build: {
  //   transpile: [/echarts/],
  // },
  runtimeConfig: {
    public: {
      apiBaseUrl: 'http://192.168.0.100:8080/api',
    },
  },
  routeRules: {
    '/': { redirect: '/gmat' }, // 将根路径重定向到/home
  },
})
